﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace NETCORE.Autofac.Controllers
{
    [Route("api/[controller]")]
    public class TestController : Controller
    {

        private IService.ITestService _testService;

        public TestController(IService.ITestService testService)
        {
            this._testService = testService;
        }


        [Route("GetTest")]
        [HttpGet]
        public string GetTest()
        {
            return this._testService.GetTest();
        }
    }
}
